/**
 * Created by zhouxiumin on 2018/6/25.
 */
function guid() {
    location.href = "/ddcat/tool?guid=1";
}

function base64() {
    var str = document.getElementById("txt").value.trim();
    if (str.length > 0) {
        location.href = "/ddcat/tool?base64=" + str;
    } else {
        alert("请输入内容");
    }
}

function sited() {
    var str = document.getElementById("txt").value.trim();
    if (str.length > 0) {
        location.href = "/ddcat/tool?sited=" + str;
    } else {
        alert("请输入内容");
    }
}

function sitedLink() {
    var str = document.getElementById("txt").value.trim();
    if (str.length > 0) {
        console.log(str);
        location.href = "/ddcat/tool?sitedLink=" + encodeURIComponent(str);
    } else {
        alert("请输入内容");
    }
}

function update() {
    var str = document.getElementById("txt").value.trim();
    if (str.length > 0) {
        console.log(str);
        location.href = "/ddcat/update?sitedLink=" + encodeURIComponent(str);
    } else {
        alert("请输入内容");
    }
}